<!DOCTYPE html>
<html>
<head>
	<title>Nerv Widgets 3</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta> 
	
	<link rel="stylesheet" href="../../themes/nw3/form.css" type="text/css" media="all"></link>
	
	<script src="../../nw3.js" type="text/javascript"></script>
	<script src="../../plugins/form/form.js" type="text/javascript"></script>
	<script src="../../langs/it.js" type="text/javascript"></script>
</head>

<body>

<script>
// stampa titolo pagina
window.document.title = NW3.toString();
</script>


<br />
Nerv Form Plugin: Input Text
<br />
<br />

<label>Replace input text</label>
<br />
<input type="text" id="text" name="text_field" />
<input id="submit" type="submit" value="Button like input submit" />

<script>
oTextReplace = new NW3.form.Text({
	replace	: '#text',
	width : '200'
});
</script>
<script>
oButton = new NW3.form.Button({
	replace	: '#submit',
	onclick : function(){
		alert('Submit!');
	}
});
</script>
<br />
<br />
<br />
<br />
<script>
oInputText = new NW3.form.Text({
	name : 'fieldname',
	id : 'fieldname',
	value : 'Testo di prova...',
	width : '200'
});
oInputText.print();
</script>
<br />
<br />
<label>Disabled</label>
<br />
<script>
oInputText = new NW3.form.Text({
	name : 'fieldname2',
	value : 'Testo di prova...',
	width : '120',
	status : 'disabled'
});
oInputText.print();
</script>

<br />
<br />
<br />
<br />
<label>Events</label>
<br />
<script>
oInputText = new NW3.form.Text({
	name : 'fieldname',
	id : 'fieldname',
	value : 'onBlur',
	width : '200',
	onblur : function(){
		alert('Running!');
	}
});
oInputText.print();
</script>

<br />
<br />
<script>
oInputText = new NW3.form.Text({
	name : 'fieldname',
	id : 'fieldname',
	value : 'onMouseDown',
	width : '200',
	onmousedown : function(){
		alert('Running!');
	}
});
oInputText.print();
</script>

<br />
<br />
<script>
oInputText = new NW3.form.Text({
	name : 'fieldname',
	id : 'fieldname',
	value : 'onKeyUp',
	width : '200',
	onkeyup : function(){
		alert('Running!');
	}
});
oInputText.print();
</script>

<br />
<br />
<script>
oInputText = new NW3.form.Text({
	name : 'fieldname',
	id : 'fieldname',
	value : 'onKeyDown',
	width : '200',
	onkeydown : function(){
		alert('Running!');
	}
});
oInputText.print();
</script>





<br>
</body>
</html>
